package xyz.xtt.admin.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 1155资产交易详情表
 * </p>
 *
 * @author author
 * @since 2025-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_asset_transaction_record")
public class TblAssetTransactionRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联资产主键
     */
    private Long accountNo;

    /**
     * 交易记录表
     */
    private Long transactionId;

    /**
     * 0转出方1转入方
     */
    private Integer side;

    /**
     * 上次结余
     */
    private BigDecimal beforeAmount;

    /**
     * 发生额
     */
    private BigDecimal amount;

    /**
     * 余额
     */
    private BigDecimal afterAmount;

    /**
     * 发生数量
     */
    private BigDecimal totalPrice;

    /**
     * 费用
     */
    private BigDecimal fees;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
